-
Notifications
You must be signed in to change notification settings - Fork 6.5k
[Bug]: Function 'execute_code' not found in available tools #8805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think what happens is that devstral is hallucinating such tool. It's possible it's just a fluke, and it continues by correcting itself? |
I just saw this as well, except the tool it tried is "execute_command". Would native tool calling help prevent this to some degree? I tried setting LLM_NATIVE_TOOL_CALLING true but get this previously reported error I'm using a version of Devstral that is listed by ollama as having tool support:
This is the Modelfile that created this model. It works quite well in OpenHands most of the time, but I suspect native calling could help with these rare hallucinations
|
As noted in the linked issue, we have found devstral to work better without native tool use. I don't know what kind of issues were there, but now that you see errors, I do wonder if errors from litellm may well be related to it. 🤔 |
In your results spreadsheet, none of the native function calling models are ones that are locally run in Ollama. Do you have a single Ollama model that's known to work with OpenHands while LLM_NATIVE_TOOL_CALLING is true? That would help narrow down if it's a model-specific issue, or a more general issue with how LiteLLM is being used by OpenHands |
Is there an existing issue for the same bug? (If one exists, thumbs up or comment on the issue instead).
Describe the bug and reproduction steps
I am getting the following error when using devstral as LLM.
Function 'execute_code' not found in available tools: ['execute_bash', 'think', 'finish', 'browser', 'execute_ipython_cell', 'str_replace_editor', 'fetch']
OpenHands Installation
Docker command in README
OpenHands Version
0.39
Operating System
MacOS
Logs, Errors, Screenshots, and Additional Context
08:05:40 - OBSERVATION
[Agent Controller b86993b5f3e5409c805117a19aa11057] ErrorObservation
Function 'execute_code' not found in available tools: ['execute_bash', 'think', 'finish', 'browser', 'execute_ipython_cell', 'str_replace_editor', 'fetch']
The text was updated successfully, but these errors were encountered: